package com.njupt.sellsec.service;

import com.njupt.sellsec.dao.UserDao;
import com.njupt.sellsec.domain.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: XJL
 * @Description:
 * @Date: Create in 17:06 2018/7/27
 * @Modified By:
 **/
@Service
public class UserService {

    @Autowired
    private UserDao userDao;

    public User getById(int id){

        return userDao.getById(id);
    }
}
